<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="cn.netjava.pojo.Article;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>this is blog's work articles page</title>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/blogdirec.css">
	
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div id="container">
       <div id="front">
           <jsp:include page="front.jsp" />          
       </div>
       
       <%List<Article> articleListAboutWork = (List<Article>)request.getAttribute("allworkarticles"); %>      
       <div id="main">
           <div id="top">工作 
           </div>
               
           <div id="left">
              <div id="article">
                 <table>
	              <%if(null!=articleListAboutWork){
	              for(Article article:articleListAboutWork){ %>
                  <tr>
                     <td width="500" height="20">标题:<a href="showonearticle.cn?articleid=<%=article.getId() %>&&uid=<%=article.getUser().getId() %>"><%=article.getArticle_title() %></a></td>
                     <td width="200" height="20">作者:<%=article.getUser().getUserName() %></td>
                  </tr>
                 <%}} %>
                 </table>
              </div> 
           </div>
           
           <div id ="right">
              <jsp:include page="right.jsp" />  
           </div>
       </div>
       
       <jsp:include page="../footer.jsp"></jsp:include>
    </div>
  </body>
</html>
